package com.ming.common.util;

import cn.hutool.core.io.file.Tailer;
import java.io.File;

public class TailerUtil {
    public static void main(String[] args) {
        File logFile = new File("C:\\Users\\Administrator\\Desktop\\wxlh\\ivy\\logs\\ivy.log");
        Tailer tailer = new Tailer(logFile, (line) -> {
            System.out.println(line);
        }, 10);
        tailer.start();
        tailer.stop();
    }


}